# 导入配置文件调用的文件
from info import create_app, db, models

from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager

# 调用配置信息
app = create_app("develop")

Migrate(app, db)
manager = Manager(app)
manager.add_command("db", MigrateCommand)

if __name__ == '__main__':
    manager.run()